#pragma once
#include "afxwin.h"
#include "ACEdit.h"


// CDlgEditUser dialog

class CDlgEditUser : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditUser)

public:
	CDlgEditUser(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditUser();
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButtonPassword();
	afx_msg void OnBnClickedButtonDelete();
	afx_msg void OnBnClickedCheckActivated();

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_USER };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

private:
	BOOL m_bChangePwd;

public:
	BOOL m_bAddUser;
	LONG m_nUserID;
	INT m_nActivationCode;

	CStringArray m_szaUserType;
	CStringArray m_szaReferrals;
	CStringArray m_szaCopyright;
	CStringArray m_szaMethod;

	CString m_szID;
	CString m_szDateJoin;
	CString m_szDateLogin;
	CString m_szUserName;
	CString m_szUserEmail;
	CString m_szCompany;

	CString m_szShipTo;
	CString m_szAddress1;
	CString m_szAddress2;
	CString m_szState;
	CString m_szZipCode;
	CString m_szCountry;
	CString m_szPhone;
	CString m_szFax;
	BOOL m_szActivated;
	CString m_szCity;
	CString m_szUserPassword;
	CString m_szAccountNumber;
	CString m_szShippingNumber;
	CString m_szNotes;

	CACEdit m_ctrlUserType;
	CACEdit m_ctrlReferrals;
	CACEdit m_ctrlMethod;
	CACEdit m_ctrlCopyright;

	CString m_szBillTo;
	CString m_szBillAddress1;
	CString m_szBillAddress2;
	CString m_szBillCity;
	CString m_szBillState;
	CString m_szBillZipcode;
	CString m_szBillCountry;

	CString m_szAltEmail1;
	double m_dFeeMax;
	BOOL m_bTaxable;
	BOOL m_bNotify;
};
